package com.mcxx.modules.miniSalvation.family.dao.read;

import com.mcxx.modules.miniSalvation.check.dto.CheckMemberDTO;
import com.mcxx.modules.miniSalvation.check.dto.IntegrateCheckMemberDTO;
import com.mcxx.modules.miniSalvation.family.entity.FamilyMemberEntity;
import com.mcxx.modules.miniSalvation.family.entity.FamilySupportEntity;
import com.yinhai.ta404.module.mybatis.mapper.Ta404SupportMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FamilySupportReadDAO  extends Ta404SupportMapper {


	List<FamilySupportEntity> queryFamilySupportByFamilyId(@Param("familyId") String familyId);


	FamilySupportEntity queryFamilySupportById(@Param("id") String id);

	int queryFamilyMainById(@Param("familyId") String familyId);

	FamilyMemberEntity queryFamilyMemberById(@Param("id") String id);


	String getIdByInFamily(@Param("familyId") String familyId,@Param("idcard") String idcard, @Param("supportId") String supportId);


	int IdcardInFamilyCount(@Param("familyId") String familyId,@Param("idcard") String idcard, @Param("memberId") String memberId);

	int cntInSupport(@Param("familyId") String familyId,@Param("idcard") String idcard);

	List<CheckMemberDTO> selectSupportListInfo(String familyId);

	List<Map<String,Object>> selectSupportToCalculate(String familyId);

	List<Map<String,Object>> selectLowerSupportToCalculate(String familyId);

	List<IntegrateCheckMemberDTO> seletcSupportForIntegrate(String orderId,String familyId);
}
